package com.harleyquinn.gulimall.product.fallback;

import com.harleyquinn.common.exception.BizCodeEnum;
import com.harleyquinn.common.utils.R;
import com.harleyquinn.gulimall.product.feign.SeckillFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Created: harleyquinn
 * @author: 哈莉·奎茵
 * @createTime: 2020-07-13 14:45
 **/
@Slf4j
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckilInfo(Long skuId) {
        log.error("远程调用失败！！");
        return R.error(BizCodeEnum.TO_MANY_REQUEST.getCode(),BizCodeEnum.TO_MANY_REQUEST.getMessage());
    }
}
